package com.qzxy.premiumhotelsystem.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzxy.premiumhotelsystem.domain.dto.VipOrderPageDTO;
import com.qzxy.premiumhotelsystem.domain.entity.VipOrders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qzxy.premiumhotelsystem.domain.vo.VipOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 14912
* @description 针对表【vip_orders】的数据库操作Mapper
* @createDate 2024-09-13 22:48:27
* @Entity com.qzxy.premiumhotelsystem.domain.pojo.VipOrders
*/

@Mapper
public interface VipOrdersMapper extends BaseMapper<VipOrders> {

    VipOrders selectVipOrder(String vipOrderId);


    List<VipOrders> findUnpaidOrders(Date fifteenMinutesAgo);

    List<VipOrderVO> getOrdersByGuestId(Integer guestId);

    IPage<VipOrderVO> pageQueryVOrdersWithVipType(IPage<VipOrderVO> page, @Param("dto") VipOrderPageDTO vipOrderPageDTO);
}




